package com.cr.admin.business.news.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cr.admin.business.news.pojo.entity.News;
import com.cr.admin.business.news.pojo.vo.NewsCategoryVO;
import com.cr.admin.business.news.pojo.vo.NewsDetailsVO;
import com.cr.admin.business.news.pojo.vo.NewsStatusVO;

import java.util.List;

public interface NewsMapper extends BaseMapper<News> {
    List<NewsCategoryVO> selectCategory();

    List<NewsStatusVO> selectNewsStatus();

    NewsDetailsVO selectDetailsById(int id);

    void insertNews(News news);

    void deleteByIds(List<Long> ids);

    void updateNewsById(int id);

    void updateNews(News param);
}
